#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int i, j, a;
	scanf("%d", &a);
	for (i = 1; i <= a; i++)
	{
		for (j = 1; j <= a+(a-1); j++)
		{
			if ((j % 2 != 0 && i == 1)||(j % 2 != 0 && i == a)||j == 1||j == a+(a-1))
			{
				printf("*");
			}
			else
				printf(" ");
		}
		printf("\n");
	}
	return 0;
}
